﻿namespace Traffic.Entity;

/// <summary>
/// 机票退款单
/// </summary>
public partial class FlightOrderListRefundOrder
{
    public int Id { get; set; }

    /// <summary>
    /// 主机票订单ID，对应FlightOrderList.ID
    /// </summary>
    public int OrderId { get; set; }

    /// <summary>
    /// 对应FlightOrderList.OrderNum
    /// </summary>
    public string FromOrderNum { get; set; } = null!;

    /// <summary>
    /// 退款单号  FR+yyyyMMddHHmm+UserID
    /// </summary>
    public string OrderNum { get; set; } = null!;

    public string ApiRefundOrderNum { get; set; } = null!;

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateDate { get; set; }

    /// <summary>
    /// 申请退票时间
    /// </summary>
    public DateTime? ApplyRefundTime { get; set; }

    /// <summary>
    /// 退款金额
    /// </summary>
    public decimal? RefundPrice { get; set; }

    /// <summary>
    /// 退票订单状态 1.申请中 2.待确认 3.已确认 4.处理中 5.退票成功 6.退票失败
    /// </summary>
    public int RefundStatus { get; set; }

    /// <summary>
    /// 退款备注
    /// </summary>
    public string? Remark { get; set; }

    /// <summary>
    /// 接口反馈数据
    /// </summary>
    public string? ApiData { get; set; }
}
